/**
 * jims
 */
package com.jims.master.modules.base.medicalService.entity;

import com.jims.master.common.persistence.DataEntity;
import com.jims.master.modules.base.user.entity.MasterBaseinfo;
import com.jims.master.modules.doctor.medicalService.entity.SDoctorServe;
import org.hibernate.validator.constraints.Length;

import java.util.List;

/**
 * 医生提供的服务表Entity
 * @author xueyx
 * @version 2017-05-02
 */
public class SDefaultServe extends DataEntity<SDefaultServe> {
	
	private static final long serialVersionUID = 1L;
	private String title;		// 标题
	private String orderNo;		// 排序
	private String introduce;		// 简介
	private Double price;		// 价格
	private String serveContent;		// 内容
	private String picUrl;		// 图片地址
	private String useFlag;		// 是否使用
	private String careful;		// 注意事项
	private String crowd;		// 服务人群
	private String name;		// 服务名称
	private String cycle;		// 服务周期

	public String getCareful() {
		return careful;
	}

	public void setCareful(String careful) {
		this.careful = careful;
	}

	public String getCrowd() {
		return crowd;
	}

	public void setCrowd(String crowd) {
		this.crowd = crowd;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCycle() {
		return cycle;
	}

	public void setCycle(String cycle) {
		this.cycle = cycle;
	}

	private String orderNum;		//相关订单数据
	private String limit;		//相关订单数据
	private List<SDoctorServe> sDoctorServeList;

	public List<SDoctorServe> getsDoctorServeList() {
		return sDoctorServeList;
	}

	public void setsDoctorServeList(List<SDoctorServe> sDoctorServeList) {
		this.sDoctorServeList = sDoctorServeList;
	}

	public SDefaultServe() {
		super();
	}

	public SDefaultServe(String id){
		super(id);
	}

	@Length(min=0, max=200, message="标题长度必须介于 0 和 200 之间")
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	
	@Length(min=0, max=10, message="排序长度必须介于 0 和 10 之间")
	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}
	
	@Length(min=0, max=600, message="简介长度必须介于 0 和 600 之间")
	public String getIntroduce() {
		return introduce;
	}

	public void setIntroduce(String introduce) {
		this.introduce = introduce;
	}
	
	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}
	
	public String getServeContent() {
		return serveContent;
	}

	public void setServeContent(String serveContent) {
		this.serveContent = serveContent;
	}
	
	@Length(min=0, max=600, message="图片地址长度必须介于 0 和 600 之间")
	public String getPicUrl() {
		return picUrl;
	}

	public void setPicUrl(String picUrl) {
		this.picUrl = picUrl;
	}
	
	@Length(min=0, max=1, message="是否使用长度必须介于 0 和 1 之间")
	public String getUseFlag() {
		return useFlag;
	}

	public void setUseFlag(String useFlag) {
		this.useFlag = useFlag;
	}

	public String getOrderNum() {
		return orderNum;
	}

	public void setOrderNum(String orderNum) {
		this.orderNum = orderNum;
	}

	public String getLimit() {
		return limit;
	}

	public void setLimit(String limit) {
		this.limit = limit;
	}
}